#include "atom.h"
#include "atomport.h"
#include <stdio.h>
#include <time.h>

void HwDelayUs(uint32_t us)
{
    struct timespec ts;

    ts.tv_sec = us / 1000000;
    ts.tv_nsec = us % 1000000;

    nanosleep(&ts, &ts);
}
